#!/bin/bash

cd `dirname $0`

if [ -z $1 ];then
PORT_PREFIX=105
elif [ $1 -lt 11 ];then
PORT_PREFIX=105
elif [ $1 -gt 655 ];then
PORT_PREFIX=105
else
PORT_PREFIX=$1
fi

for i in `seq 10 20`;do
python cmdserver.py --port=$PORT_PREFIX$i --deamon=1
done
